package com.weirdor.wxchat.module.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 默认关键字回复
 * </p>
 *
 * @author weirdor
 * @since 2017-12-01
 */
@TableName("qywx_autoresponse_default")
public class QywxAutoresponseDefault extends Model<QywxAutoresponseDefault> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
	private String id;
    /**
     * 模板名称
     */
	private String templatename;
    /**
     * 模板Id
     */
	private String templateid;
    /**
     * 消息类型
     */
	private String msgtype;
    /**
     * 微信账号Id
     */
	private String accountid;
    /**
     * 是否启用
     */
	private String iswork;
    /**
     * 创建人名称
     */
	@TableField("create_name")
	private String createName;
    /**
     * 创建人登录名称
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建日期
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 更新人名称
     */
	@TableField("update_name")
	private String updateName;
    /**
     * 更新人登录名称
     */
	@TableField("update_by")
	private String updateBy;
    /**
     * 更新日期
     */
	@TableField("update_date")
	private Date updateDate;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTemplatename() {
		return templatename;
	}

	public void setTemplatename(String templatename) {
		this.templatename = templatename;
	}

	public String getTemplateid() {
		return templateid;
	}

	public void setTemplateid(String templateid) {
		this.templateid = templateid;
	}

	public String getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(String msgtype) {
		this.msgtype = msgtype;
	}

	public String getAccountid() {
		return accountid;
	}

	public void setAccountid(String accountid) {
		this.accountid = accountid;
	}

	public String getIswork() {
		return iswork;
	}

	public void setIswork(String iswork) {
		this.iswork = iswork;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "QywxAutoresponseDefault{" +
			"id=" + id +
			", templatename=" + templatename +
			", templateid=" + templateid +
			", msgtype=" + msgtype +
			", accountid=" + accountid +
			", iswork=" + iswork +
			", createName=" + createName +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateName=" + updateName +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			"}";
	}
}
